Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding support for vlanmode per issue #15 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonasstenling
Copy link
Contributor

Implementing support to return current vlan mode, see issue #15

@EvgeniyV
Copy link

Hi, as i understand CE is default mode for vlan and if fabric feature not installed or not enabled - 'mode' option even is not available for setting and can raise an error.

@jonasstenling
Copy link
Contributor Author

get_vlan() will return the current vlan mode regardless of whether fabricpath is enabled or not. See response from NXAPI sandbox with no fabricpath:

{
"jsonrpc": "2.0",
"result": {
"body": {
"vlanshowrspan-vlantype": "notrspan",
"is-vtp-manageable": "enabled",
"TABLE_vlanbriefid": {
"ROW_vlanbriefid": {
"vlanshowbr-vlanid": 15,
"vlanshowbr-vlanid-utf": 15,
"vlanshowbr-vlanname": "test15",
"vlanshowbr-vlanstate": "active",
"vlanshowbr-shutstate": "noshutdown",
"vlanshowplist-ifidx": "Ethernet1/4"
}
},
"TABLE_mtuinfoid": {
"ROW_mtuinfoid": {
"vlanshowinfo-vlanid": 15,
"vlanshowinfo-media-type": "enet",
"vlanshowinfo-vlanmode": "ce-vlan"
}
}
}

For the module the mode argument is not mandatory so I see no problem with that.

@EvgeniyV
Copy link

ok, i missed, i thought about setting vlan mode, but already found it in other pull request https://github.com/jedelman8/nxos-ansible/pull/29/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants